
/*
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU Lesser General Public License Version
 *  3 as published by the Free Software Foundation.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public
 *  License along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307,
 *  USA.
 */

#ifndef ZONEINFO_H
#define ZONEINFO_H

#include <optra/common/sdk.h>

namespace Optra{

    class GuiWindow;


    O_PRIVATE_DECLARE(ZoneWindow);
    class SDK_EXPORT ZoneWindow{
    public:
        ZoneWindow(const QString& id, const QString& display, GuiWindow* w, QWidget* toolbar = 0);
        virtual ~ZoneWindow();

        const QIcon& icon()const;
        QString id()const;
        QString display()const;
        GuiWindow* widget();
        QWidget* toolbar();
        void setIcon(const QIcon& icon);
    private:
        O_PRIVATE_DECLARE_MEMBER(ZoneWindow);
    };


    O_PRIVATE_DECLARE(ZoneInfo);
    class SDK_EXPORT ZoneInfo
    {
    public:
        ZoneInfo(const QString& id, const QString& name);
        virtual ~ZoneInfo();

        typedef QList<ZoneWindow*> ViewsList;
        typedef QList<ZoneWindow*> ToolsList;

        QString name()const;
        QString id()const;

        ViewsList views();
        void addView(ZoneWindow*);

        ToolsList tools();
        void addTool(ZoneWindow*);

        QIcon icon();
        void setIcon(const QIcon& icon);

    private:
        O_PRIVATE_DECLARE_MEMBER(ZoneInfo);
    };
};


#endif // ZONEINFO_H

